package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.DTO.SysRoleDTO;
import com.itheima.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysRoleMapper {

    List<String> selectNameListByIds(List<String> roleIdsList);

    List<SysRole> selectSysRoles();

    void insertSysRole(SysRole sysRole);

    void deleteRoleById(String id);

    SysRole selectRoleById(String id);

    void updateSysRole(SysRole sysRole);

    Integer selectCountByNameNotSelf(String name, String id);

    Integer selectCountByName(String name);

    List<SysRole> page(String name);
}
